package com.dwxt.cdms.controller;

import com.dwxt.cdms.entity.Policy;
import com.dwxt.cdms.service.PolicyService;
import com.dwxt.common.base.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* @Description: 隐私政策
* @Author chendq
* @Date 2021/12/30
**/
@RequestMapping("/cdms/policy")
@RestController
public class PolicyController {

    @Autowired
    private PolicyService policyService;

    /**
     * 分页查询
     */
    @RequestMapping("/page")
    public BaseResult page() {
        return policyService.page();
    }


    /**
     * 修改
     */
    @RequestMapping("/save")
    public BaseResult save(Policy policy){
        return  policyService.save(policy);
    }
}

